<template>
  <div class="add-enterprise-account-dialog">
    <el-dialog :visible.sync="visible" width="54%" :before-close="handleClose">
      <div slot="title" style="font-size: 14px;font-weight: 500;">
        选择企业成员
      </div>
      <div class="add-enterprise-account-container">
        <div class="add-enterprise-account-left">
          <div class="search-wrap">
            <el-input placeholder="搜索成员的姓名、实名" size="small" style="width: 320px;" v-model="input3"
              class="input-with-select">
              <el-button slot="append" type="primary" icon="el-icon-search"></el-button>
            </el-input>
          </div>
          <div class="empty-context">请先搜索成员</div>
        </div>
        <div class="add-enterprise-account-right">
          <div class="title">已选择成员<span>（0）</span></div>
          <div class="box">
            <div class="empty">暂无已选择成员</div>
          </div>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <div class="dialog-footer-flex">
          <el-button @click="onClose">取消</el-button>
          <el-button type="primary" @click="onClose">确认</el-button>
        </div>
      </span>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      status: '',
      tableData: []
    }
  },
  props: ['visible'],
  methods: {
    onClose() {
      this.$emit('handCloseDialog');
    }
  },
}
</script>
<style lang="scss" scoped>
.add-enterprise-account-dialog {
  ::v-deep .el-dialog__body {
    padding: 0;
    background: #ffffff;
  }

  .add-enterprise-account-container {
    display: flex;

    .add-enterprise-account-left {
      flex: 1 1;
      height: 436px;
      margin: 20px;
      background: #ffffff;
      border: 1px solid #e9e9e9;

      .search-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #e9e9e9;
      }

      .empty-context {
        margin-top: 180px;
        font-size: 14px;
        line-height: 22px;
        text-align: center;
      }
    }

    .add-enterprise-account-right {
      width: 280px;
      background: #f5f5f5;

      .title {
        padding: 12px 20px;
        border-bottom: 1px solid #e9e9e9;
        color: rgba(0, 0, 0, .85);
        font-size: 14px;
      }

      .empty {
        margin-top: 180px;
        font-size: 14px;
        line-height: 22px;
        text-align: center;
      }
    }
  }
}
</style>